﻿#include "DAL/ProductModelDal.h"
#include "DAL/dbhelper.h"
using namespace DAL;

int ProductModelDAL::getrowCount()
{
    QSqlQuery query =get_sql("SELECT * FROM product_model");
    int rows=0;
    while(query.next())
        rows++;
    rowCount=rows;
    return rowCount;
}
